package com.magic.gre.mvp.model;

import com.magic.gre.Api;
import com.magic.gre.mvp.contract.SuggestionContract;
import com.noname.lib_base_java.mvp.BaseModelImpl;
import com.noname.lib_base_java.net.RtManager;

import io.reactivex.Observable;
import io.reactivex.Observer;
import okhttp3.ResponseBody;

/**
 * Author: Lmoumou
 * Date: 2019-01-10 21:04
 * 文件名: SuggestionModelImpl
 * 描述:
 */
public class SuggestionModelImpl extends BaseModelImpl implements SuggestionContract.Model {
    @Override
    public void mFeedBack(Observer<ResponseBody> observer, String content, String contact) {
        Observable<ResponseBody> observable = RtManager.getInatance().createApi(Api.class).feedback(content, contact);
        doHttp(observer,observable);
    }
}
